package com.hck.app.service;

import com.hck.domain.consultation.model.entity.ConsultationReplyEntity;
import com.hck.domain.consultation.model.entity.HealthConsultationEntity;
import com.hck.domain.consultation.service.ConsultationDomainService;
import com.hck.domain.consultation.service.IConsultationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * ConsultationService class description here.
 *
 * @author 黄朝看
 * @date 2025/6/30
 */
@Service
public class ConsultationService implements IConsultationService {
    @Resource
    private ConsultationDomainService domainService;

    @Override
    public Long createConsultation(HealthConsultationEntity consultation) {
        return domainService.createConsultation(consultation);
    }

    @Override
    public void replyConsultation(Long consultationId, ConsultationReplyEntity reply) {
        domainService.replyConsultation(consultationId, reply);
    }

    @Override
    public HealthConsultationEntity getConsultationDetail(Long id) {
        return domainService.getConsultationDetail(id);
    }

    @Override
    public List<ConsultationReplyEntity> getReplies(Long consultationId) {
        return domainService.getReplies(consultationId);
    }

    @Override
    public List<HealthConsultationEntity> getUserConsultations(Long userId) {
        return domainService.getUserConsultations(userId);
    }

    @Override
    public List<HealthConsultationEntity> getDoctorConsultations(Long doctorId) {
        return domainService.getDoctorConsultations(doctorId);
    }

    @Override
    public void closeConsultation(Long consultationId) {
        domainService.closeConsultation(consultationId);
    }
}  
